package model;

import util.FormateDate;


/**
 * TDuty entity. @author MyEclipse Persistence Tools
 */

public class TDuty implements java.io.Serializable {

	// Fields

	private Integer dutyid;
	private String userid;
	private String time;
	private String dutycontent;

	// Constructors

	/** default constructor */
	public TDuty() {
	}

	/** minimal constructor */
	public TDuty(String userid) {
		this.userid = userid;
	}

	/** full constructor */
	public TDuty(String userid, String time, String dutycontent) {
		this.userid = userid;
		this.time = time;
		this.dutycontent = dutycontent;
	}

	// Property accessors

	public Integer getDutyid() {
		return this.dutyid;
	}

	public void setDutyid(Integer dutyid) {
		this.dutyid = dutyid;
	}

	public String getUserid() {
		return this.userid;
	}

	public void setUserid(String userid) {
		this.userid = userid;
	}

	public String getTime() {
		return FormateDate.datetimeFormat(this.time);
	}

	public void setTime(String time) {
		this.time = time;
	}

	public String getDutycontent() {
		return this.dutycontent;
	}

	public void setDutycontent(String dutycontent) {
		this.dutycontent = dutycontent;
	}

}